//
//  FooterCollectionReusableView.m
//  TourPlay
//
//  Created by dllo on 15/11/26.
//  Copyright © 2015年 王军岐. All rights reserved.
//

#import "FooterCollectionReusableView.h"

@interface FooterCollectionReusableView ()

@property (nonatomic, retain) UILabel *label;

@end

@implementation FooterCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;
}
- (void)createSubViews
{
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, 70, 30)];
//        self.label.backgroundColor = [UIColor lightGrayColor];
    
    self.label.text = @"还有更多";
    self.label.font = [UIFont systemFontOfSize:15.f];
    self.label.textColor = [UIColor colorWithRed:0.94 green:0.52 blue:0 alpha:1];
    [self addSubview:self.label];
    [_label release];

    UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(self.label.frame.origin.x + self.label.frame.size.width, self.label.frame.origin.y + self.label.frame.size.height / 2.f, SCREEN_WIDTH - 25 - (self.label.frame.origin.x + self.label.frame.size.width), 1)];
    lineView.backgroundColor = [UIColor colorWithRed:0.91 green:0.91 blue:0.91 alpha:1];
    [self addSubview:lineView];
    [lineView release];
    
    [self addColorChangedBlock:^{
        
        lineView.nightBackgroundColor = [ColorSingleton shareSingleton].cellLineColor;
        lineView.normalBackgroundColor = [ColorSingleton shareSingleton].cellLineColor;
    }];

}
@end
